{extend name="common/public"/}
{block name="content"}
<div class="am-g">
	<div class="am-u-sm-12">
		<table class="am-table admin-table sptable">
			<thead>
				<tr>
					<th style="width:70px;">ID</th>
					<th>分组标识</th>
					<th>规则</th>
					<th>规则名</th>
					<th>type</th>
					<th>condition</th>
					<th>排序</th>
					<th>状态</th>
					<th style="width:100px;">操作</th>
				</tr>
			</thead>
			<tbody>
				{volist name="rows" id="vo"}
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.pid}</td>
					<td>{$vo.name}</td>
					<td>{$vo.title}</td>
					<td>{$vo.type}</td>
					<td>{$vo.condition}</td>
					<td>{$vo.sort}</td>
					<td>{$vo.state==1 ? '正常' : '关闭'}</td>
					<td><a href="{:url('edit',['id'=>$vo.id])}">编辑</a> &nbsp;&nbsp;&nbsp;<a href="{:url('del',['id'=>$vo.id])}" onClick="delcfm()">删除</a></td>
				</tr>
				{/volist}
				<tr>
					<td colspan="9"><a class="am-btn am-btn-primary am-radius am-btn-sm" href="{:url('add')}">新增规则</a></td>
				</tr>
				<tr>
					<td colspan="9"><span class="admin-page-info">共{$rows->lastPage()}页/{$rows->total()}条记录</span>{$rows->render()|raw}</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
{/block}